package cate.game.role.pvp.throne.msg;

import cate.game.GameBody;
import cate.game.client.ClientContext;
import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgInput;
import cate.game.client.msg.id.MsgIdBTB;
import cate.game.pvp.throne.msg.TBKoPlaySideInnerResp;
import easy.java.dev.note.NoteField;

@ClientMsg(title = "查看淘汰赛阵容 の 请求")
public class GetKoPositionReq implements MsgInput {

    @NoteField("玩家唯一id")
    public String roleUid;

    @Override
    public void execute(GameBody game, ClientContext cc) {
        TBKoPlaySideInnerResp resp = game.pvp.throne.message.getPlaySide(roleUid);
        cc.sendNow(new GetKoPlaySideResp(resp.playSide));
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBTB.GET_KO_POSITION_REQ;
    }
}
